Skip to content
This repository has been archived by the owner on Dec 7, 2023. It is now read-only.

Add structured validation for the API types #216

Merged
merged 3 commits into from
Jul 18, 2019

Conversation

luxas
Copy link
Contributor

@luxas luxas commented Jul 18, 2019

This adds validation for the API types, and always uses the internal type.

@luxas luxas added this to the v0.5.0 milestone Jul 18, 2019
Copy link
Contributor

@twelho twelho left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Found some comment typos that you could fix.

return
}

// ValidateAbsolutePath validates if a network mode is valid
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is probably a typo, should be "if a path is absolute".

return
}

// ValidateVMState validates if an vm state is valid
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

vm -> VM

@luxas
Copy link
Contributor Author

luxas commented Jul 18, 2019

Comments fixed, merging

@luxas luxas merged commit b573a49 into weaveworks:master Jul 18, 2019
@luxas luxas added the kind/enhancement Categorizes issue or PR as related to improving an existing feature. label Aug 6, 2019
@luxas luxas changed the title Add validation for the internal API types Add structured validation for the API types Aug 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/enhancement Categorizes issue or PR as related to improving an existing feature.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants